﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace WCFMoneyLover
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IMoneyLoverService" in both code and config file together.
    [ServiceContract]
    public interface IMoneyLoverService
    {
        [OperationContract]
        TAIKHOAN Checklogin(string user, string pass);
        [OperationContract]
        bool DangKy(TAIKHOAN objui);
        [OperationContract]
        List<LOAIGIAODICH> GetListLoaiThu();
        [OperationContract]
        List<LOAIGIAODICH> GetListLoaiChi();
        [OperationContract]
        List<KEHOACH> GetListKeHoach();
        [OperationContract]
        bool InsertThuChi(THU_CHI obj);
        [OperationContract]
        List<THU_CHI> GetThu(String user);
        [OperationContract]
        List<THU_CHI> GetChi(String user);
        [OperationContract]
        List<VAY_NO> GetListVayChuaTra(String user);
        [OperationContract]
        List<VAY_NO> GetListVayDaTra(String user);
        [OperationContract]
        List<VAY_NO> GetListNoChuaTra(String user);
        [OperationContract]
        List<VAY_NO> GetListNoDaTra(String user);
        [OperationContract]
        bool InsertVayNo(VAY_NO objui);
        [OperationContract]
        List<NGOAITE> GetListNgoaiTe();
        [OperationContract]
        List<GIAODICH> GetListGiaoDich();
        [OperationContract]
        List<THU_CHI> TimKiemThu(String keyword, decimal tien1, decimal tien2, DateTime ngay1, DateTime ngay2);
        [OperationContract]
        List<THU_CHI> TimKiemChi(String keyword, decimal tien1, decimal tien2, DateTime ngay1, DateTime ngay2);
        [OperationContract]
        List<VAY_NO> TimKiemVay(String keyword, decimal tien1, decimal tien2, DateTime ngay1, DateTime ngay2);
        [OperationContract]
        List<VAY_NO> TimKiemNo(String keyword, decimal tien1, decimal tien2, DateTime ngay1, DateTime ngay2);
        [OperationContract]
        bool InsertKeHoach(KEHOACH obj);
    }
}
